/*
 * tcflush.c
 *
 * Copyright (C) Anselm Lingnau <anselm@anselms.net>
 *
 * This small program is used to avoid cheating in the
 * "ledmemo" game, where people would type along with the
 * colours being displayed and then just hit "Return" at
 * the prompt. It flushes the terminal driver's input
 * buffer immediately before putting up the prompt for
 * the colour sequence.
 */

#include <termios.h>
#include <unistd.h>

int
main (void)
{
    return tcflush(0, TCIFLUSH) != 0;
}
